﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMaster.Master" AutoEventWireup="true" CodeBehind="Thesis.aspx.cs" Inherits="Realisticsoft.Tesdo.Admin.Thesis" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphAdmin" runat="server">
    <div class="content-box-outer">
        <div class="content-box-right">
        </div>
        <div class="content-box-left">
            <h1>Publication & Journals<%--<a href="#" class="addNew">Add new category</a>--%></h1>

            <div class="MessageArea">
                <asp:Label Text="-" ID="lblMsg" runat="server" />
            </div>

            <div>
                <div class="TitleArea"><b>Title: </b></div>
                <div class="textBoxArea">
                    <asp:TextBox ID="txtTitle" runat="server" Width="400"></asp:TextBox>
                </div>
                <div class="TitleArea"><b>Print ISSN: </b></div>
                <div class="textBoxArea">
                    <asp:TextBox ID="txtPrintISSN" runat="server" Width="200"></asp:TextBox>
                </div>
                <div class="TitleArea"><b>Online ISSN: </b></div>
                <div class="textBoxArea">
                    <asp:TextBox ID="txtOnlineISSN" runat="server" Width="200"></asp:TextBox>
                </div>
                <div class="TitleArea"><b>Publisher: </b></div>
                <div class="textBoxArea">
                    <asp:TextBox ID="txtPublisher" runat="server" Width="400"></asp:TextBox>
                </div>
                <div class="TitleArea"><b>Short Description: </b></div>
                <div class="textBoxArea">
                    <asp:TextBox ID="txtShortDescription" runat="server" TextMode="MultiLine" Width="500" Height="150"></asp:TextBox>
                </div>
                <div class="TitleArea"><b>Short Description: </b></div>
                <div class="textBoxArea">
                    <asp:FileUpload ID="FileUploadJournal" runat="server" /><asp:Image ID="imgJournal" runat="server" />
                </div>
                <div class="TitleArea"><b>.</b></div>
                <div class="textBoxArea">
                    <asp:Button Text="Save" runat="server" ID="btnSave" CssClass="buttonDesign" OnClick="btnSave_Click" /><asp:Button Text="Clear" runat="server" ID="btnClear" CssClass="buttonDesign" OnClick="btnClear_Click" /><asp:Button Text="Cancel" runat="server" ID="btnCancel" CssClass="buttonDesign" OnClick="btnCancel_Click" />
                </div>
            </div>
            <br clear="all" /><br />
            <h1>Manage Journals<%--<a href="#" class="addNew">Add new category</a>--%></h1>
            <div>
                <asp:GridView ID="gvJournal" runat="server" AutoGenerateColumns="False" CellPadding="4"
                ForeColor="Black" GridLines="Vertical" OnRowCommand="gvJournal_RowCommand"
                AllowPaging="True" OnPageIndexChanging="gvJournal_PageIndexChanging"
                Width="988px" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px">
                <RowStyle BackColor="#F7F7DE" />
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:BoundField HeaderText="Journal Title" DataField="Title">
                        <ItemStyle Width="300px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="PrintISSN" HeaderText="Print ISSN">
                         <ItemStyle Width="100px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="OnlineISSN" HeaderText="Online ISSN">
                         <ItemStyle Width="100px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="ShortDescription" HeaderText="Short Description"></asp:BoundField>
                     <asp:TemplateField HeaderText="Thumb">
                            <itemtemplate>
                            <a href='<%# "../JournalsImages/" + Convert.ToString (Eval ("Photo")) %>' target="_blank">
                         <asp:Image ID="imgPIC" runat="server" Width="60px" Height="80px" ImageUrl='<%# "../JournalsImages/" + Convert.ToString (Eval ("Thumb")) %>' />
                           </a>
                           </itemtemplate>
                                <HeaderStyle HorizontalAlign="Center" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                    <asp:TemplateField HeaderText="Actions">
                        <ItemTemplate>
                            <asp:ImageButton ID="ImageButtonEdit" Width="15" ToolTip="Edit" CommandArgument='<%#Eval("JournalID") %>'
                                CommandName="cmdUpdate" CausesValidation="False" runat="server" ImageUrl="images/edit.png" />
                            <asp:ImageButton ID="ImageButtonDelete" Width="15" ToolTip="Delete" CommandArgument='<%#Eval("JournalID") %>'
                                CommandName="cmdDelete" OnClientClick="return confirm('Are you sure?');" CausesValidation="False"
                                runat="server" ImageUrl="images/delete.png" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#CCCC99" />
                <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />

                <SortedAscendingCellStyle BackColor="#FBFBF2" />
                <SortedAscendingHeaderStyle BackColor="#848384" />
                <SortedDescendingCellStyle BackColor="#EAEAD3" />
                <SortedDescendingHeaderStyle BackColor="#575357" />

            </asp:GridView>
            </div>
        </div>
    </div>
</asp:Content>
